package com.wanmait.employment.webController;

import com.wanmait.employment.entity.ProjectExperience;
import com.wanmait.employment.service.ProjectExperienceService;
import com.wanmait.employment.util.AjaxResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("web/ProjectExperience")
public class WebProjectExperienceController {
    @Resource
    private ProjectExperienceService projectExperienceService;

    @GetMapping("ProjectExperience")
    public AjaxResult getFinancingStage(Integer userinfoId){
        List<ProjectExperience> projectExperienceList=projectExperienceService.selectId(userinfoId);
        return AjaxResult.success("success").put("projectExperienceList",projectExperienceList);
    }
}
